package com.chen.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.chen.entity.Permission;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;


@Mapper
public interface PermissionMapper extends BaseMapper<Permission> {
    /**
     * 根据 userId查询对应的权限
     */
    List<Permission> listPermissionByUserId(Integer userId);

}
